﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="add_article.aspx.cs" Inherits="qf_cms.admin.add_article" ValidateRequest="false" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加/编辑文章</title>
	<link href="../styles/Site.css" rel="stylesheet" type="text/css" />
	<script src="../scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script type="text/javascript">
		function doRefresh() {
			window.parent.refreshNav();
			window.location.reload();
		}
		function doSave() {
			if ($("#articleTitle").val() == "") {
				alert("标题不能为空");
				return;
			}
			form1.submit();
		}
		function doCancel() {
			window.location = "columnGeneral.aspx?id=<%=pid %>";
		}
	</script>
</head>
<body>
<div class="editFormTitle">添加/编辑文档</div>
    <form id="form1" runat="server">
	<div><table><tr><td>标题&nbsp;&nbsp;</td><td><input type="text" style="width:300px;" id="articleTitle" name="articleTitle" value="<%=HttpUtility.HtmlEncode(curArticle.ArticleTitle) %>" /></td><%--<td>模板&nbsp;&nbsp;</td><td><select id="templates" name="templates"><%WriteTemplateOption(); %></select></td>--%></tr></table>
	</div>
    <div > 
	<CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="300"></CKEditor:CKEditorControl>
		</div> 
		<div style="padding-top:5px;"><input type="button" value=" 保存 " onclick="doSave()" /><span style="color:#ff0000;"><%=tip%></span>&nbsp;&nbsp;<input type="button" value=" 取消 " onclick="doCancel()" /></div>
    </form>
</body>
</html>
